﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Demo.Framework.DataStructures
{
    class BTreeNode<TKey, TValue>
        where TKey : IComparable
    {
        public BTreeNode<TKey, TValue> Left { get; set; }
        public BTreeNode<TKey, TValue> Right { get; set; }
        public TKey Key { get; set; }
        public TValue Value { get; set; }
        public int Count { get; set; }

        public BTreeNode(TKey key, TValue value)
        {
            this.Key = key;
            this.Value = value;
        }
    }
}
